using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Omniture.Studio
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);

			//SplashForm F = new SplashForm();
			//F.Show();

			AboutForm F = new AboutForm();
			F.MakeSplash();
			F.Show();
			System.Windows.Forms.Application.DoEvents();

			try
			{
				MDIForm F2 = new MDIForm();
				if (args.Length > 0) F2.OpenFile(args[0]);
				Application.Run(F2);

			}
			catch (Exception ex)
			{
				ErrorForm errorForm = new ErrorForm(ex);
				errorForm.ShowDialog();
			}

		}
	}
}